import request from './request'

/** 报名活动 -- 创建 */
export function activityCreate(data) {
  return request.post(`activity/form/create`, data)
}
/** 报名活动 -- 列表 */
export function activityList(data) {
  return request.get(`activity/form/lst`, data)
}
/** 报名活动 -- 系统表单 */
export function formSelectSystem() {
  return request.get(`store/form/select_sys`)
}
/** 报名活动 -- 修改显示状态 */
export function activityStatusApi(id, status) {
  return request.post(`activity/form/status/${id}`, { status })
}
/** 报名活动 -- 详情 */
export function activityDetail(id) {
  return request.get(`activity/form/detail/${id}`)
}
/** 报名活动 -- 删除 */
export function activityDeleteApi(id) {
  return request.delete(`activity/form/delete/${id}`)
}
/** 报名活动 -- 活动统计 */
export function activityUserStatics(id, data) {
  return request.get(`activity/form/user/lst/${id}`, data)
}
/** 活动统计 -- 导出 */
export function activityStaticsExport(id, data) {
  return request.get(`activity/form/excel/${id}`, data)
}

/** 报名活动 -- 编辑 */
export function activityUpdateApi(id, data) {
  return request.post(`activity/form/update/${id}`, data)
}
/** 报名活动 -- 关联的表单信息 */
export function associatedFormInfo(id, data) {
  return request.get(`system/form/info/${id}`, data)
}
export function activityCateSelect() {
  return request.get(`activity/category/select`)
}
export function refundActivityListApi(data) {
  return request.get('activity/refund/lst', data)
}
export function refundActivityStatusApi(id, data) {
  return request.post(`activity/refund/status/${id}`, data)
}
export function refundActivityDetailApi(id) {
  return request.get(`activity/refund/detail/${id}`)
}
export function activityOrderLstApi(data) {
  return request.get(`activity/order/lst`, data)
}
export function activityOrderVerifyApi(id) {
  return request.get(`activity/order/verify/${id}`)
}

/**
 *  核销管理 -- 列表
 */
export function verificationListApi(data) {
  return request.get('activity/verification/lst', data)
}

/**
 *  核销管理 -- 删除
 */
export function verificationDeleteApi(id) {
  return request.delete(`activity/verification/delete/${id}`)
}

/**
 *  核销管理 -- 新增表单
 */
export function verificationCreateApi() {
  return request.get('activity/verification/create/form')
}

/**
 *  核销管理 -- 编辑表单
 */
export function verificationUpdateApi(id) {
  return request.get(`activity/verification/update/form/${id}`)
}

/**
 *  核销管理 -- 添加
 */
export function verificationAddApi(data) {
  return request.post('activity/verification/create', data)
}

/**
 *  核销管理 -- 编辑
 */
export function verificationEditApi(id, data) {
  return request.post(`activity/verification/update/${id}`, data)
}


//malei
export function activityOrderDataApi(data) {
  return request.get(`activity/order/order_data`, data)
}
export function activityOrderLstDataApi(data) {
  return request.get(`activity/order/order_lstdata`, data)
}

export function ordercolumnsum(data) {
  return request.get(`activity/order/ordercolumnsum`, data)
}
